package chapter09.exercise.test19;

public class Games {
    public static void play(Factory fact) {
        Play play = fact.getPlay();
        play.play();
    }

    public static void main(String[] args) {
        play(new CoinFactory());
        play(new DiceFactory());
    }
}
